package com.sam.designpattern.builder;

/**
 * @Author: Sam
 * @Date: 2022-07-25 11:26
 * @Description: 认证配置对象
 */
public class AuthConfig {

    private String appId;

    private String secret;

    private long expireTime;

    public AuthConfig(AuthConfigBuilder builder) {
        this.appId = builder.getAppId();
        this.secret = builder.getSecret();
        this.expireTime = builder.getExpireTime();
    }

    @Override
    public String toString() {
        return "AuthConfig{" +
                "appId='" + appId + '\'' +
                ", secret='" + secret + '\'' +
                ", expireTime=" + expireTime +
                '}';
    }
}
